package cn.ycbjie.ycaudioplayer.util.other;

import android.content.Context;
import android.graphics.drawable.Drawable;

import com.bumptech.glide.Glide;
import com.bumptech.glide.RequestBuilder;
import com.bumptech.glide.request.RequestOptions;
import com.bumptech.glide.request.target.SimpleTarget;
import com.bumptech.glide.request.transition.Transition;

import cn.ycbjie.ycaudioplayer.R;

/**
 * Created by yuyu on 2018-12-12.
 */

public class GlideUtil {

    public static RequestBuilder<Drawable> GlideWithPlaceHolder(Context context, Object object) {
        return Glide.with(context).load(object).apply(new RequestOptions().placeholder(R.mipmap.ic_launcher).dontAnimate());
    }


}
